Optimal. Leaf size=281 \[ -\frac {f^3 \log \left (\frac {e (f+g x)}{e f-d g}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{g^4}-\frac {f x^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{2 g^2}+\frac {x^3 \left (a+b \log \left (c (d+e x)^n\right )\right )}{3 g}+\frac {a f^2 x}{g^3}+\frac {b f^2 (d+e x) \log \left (c (d+e x)^n\right )}{e g^3}+\frac {b d^3 n \log (d+e x)}{3 e^3 g}+\frac {b d^2 f n \log (d+e x)}{2 e^2 g^2}-\frac {b d^2 n x}{3 e^2 g}-\frac {b f^3 n \text {Li}_2\left (-\frac {g (d+e x)}{e f-d g}\right )}{g^4}-\frac {b d f n x}{2 e g^2}+\frac {b d n x^2}{6 e g}-\frac {b f^2 n x}{g^3}+\frac {b f n x^2}{4 g^2}-\frac {b n x^3}{9 g} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.28, antiderivative size = 281, normalized size of antiderivative = 1.00, number of steps used = 14, number of rules used = 8, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.320, Rules used = {43, 2416, 2389, 2295, 2395, 2394, 2393, 2391} \[ -\frac {b f^3 n \text {PolyLog}\left (2,-\frac {g (d+e x)}{e f-d g}\right )}{g^4}-\frac {f^3 \log \left (\frac {e (f+g x)}{e f-d g}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{g^4}-\frac {f x^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{2 g^2}+\frac {x^3 \left (a+b \log \left (c (d+e x)^n\right )\right )}{3 g}+\frac {a f^2 x}{g^3}+\frac {b f^2 (d+e x) \log \left (c (d+e x)^n\right )}{e g^3}+\frac {b d^2 f n \log (d+e x)}{2 e^2 g^2}-\frac {b d^2 n x}{3 e^2 g}+\frac {b d^3 n \log (d+e x)}{3 e^3 g}-\frac {b d f n x}{2 e g^2}+\frac {b d n x^2}{6 e g}-\frac {b f^2 n x}{g^3}+\frac {b f n x^2}{4 g^2}-\frac {b n x^3}{9 g} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 43
Rule 2295
Rule 2389
Rule 2391
Rule 2393
Rule 2394
Rule 2395
Rule 2416
Rubi steps
\begin {align*} \int \frac {x^3 \left (a+b \log \left (c (d+e x)^n\right )\right )}{f+g x} \, dx &=\int \left (\frac {f^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{g^3}-\frac {f x \left (a+b \log \left (c (d+e x)^n\right )\right )}{g^2}+\frac {x^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{g}-\frac {f^3 \left (a+b \log \left (c (d+e x)^n\right )\right )}{g^3 (f+g x)}\right ) \, dx\\ &=\frac {f^2 \int \left (a+b \log \left (c (d+e x)^n\right )\right ) \, dx}{g^3}-\frac {f^3 \int \frac {a+b \log \left (c (d+e x)^n\right )}{f+g x} \, dx}{g^3}-\frac {f \int x \left (a+b \log \left (c (d+e x)^n\right )\right ) \, dx}{g^2}+\frac {\int x^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \, dx}{g}\\ &=\frac {a f^2 x}{g^3}-\frac {f x^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{2 g^2}+\frac {x^3 \left (a+b \log \left (c (d+e x)^n\right )\right )}{3 g}-\frac {f^3 \left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (\frac {e (f+g x)}{e f-d g}\right )}{g^4}+\frac {\left (b f^2\right ) \int \log \left (c (d+e x)^n\right ) \, dx}{g^3}+\frac {\left (b e f^3 n\right ) \int \frac {\log \left (\frac {e (f+g x)}{e f-d g}\right )}{d+e x} \, dx}{g^4}+\frac {(b e f n) \int \frac {x^2}{d+e x} \, dx}{2 g^2}-\frac {(b e n) \int \frac {x^3}{d+e x} \, dx}{3 g}\\ &=\frac {a f^2 x}{g^3}-\frac {f x^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{2 g^2}+\frac {x^3 \left (a+b \log \left (c (d+e x)^n\right )\right )}{3 g}-\frac {f^3 \left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (\frac {e (f+g x)}{e f-d g}\right )}{g^4}+\frac {\left (b f^2\right ) \operatorname {Subst}\left (\int \log \left (c x^n\right ) \, dx,x,d+e x\right )}{e g^3}+\frac {\left (b f^3 n\right ) \operatorname {Subst}\left (\int \frac {\log \left (1+\frac {g x}{e f-d g}\right )}{x} \, dx,x,d+e x\right )}{g^4}+\frac {(b e f n) \int \left (-\frac {d}{e^2}+\frac {x}{e}+\frac {d^2}{e^2 (d+e x)}\right ) \, dx}{2 g^2}-\frac {(b e n) \int \left (\frac {d^2}{e^3}-\frac {d x}{e^2}+\frac {x^2}{e}-\frac {d^3}{e^3 (d+e x)}\right ) \, dx}{3 g}\\ &=\frac {a f^2 x}{g^3}-\frac {b f^2 n x}{g^3}-\frac {b d f n x}{2 e g^2}-\frac {b d^2 n x}{3 e^2 g}+\frac {b f n x^2}{4 g^2}+\frac {b d n x^2}{6 e g}-\frac {b n x^3}{9 g}+\frac {b d^2 f n \log (d+e x)}{2 e^2 g^2}+\frac {b d^3 n \log (d+e x)}{3 e^3 g}+\frac {b f^2 (d+e x) \log \left (c (d+e x)^n\right )}{e g^3}-\frac {f x^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{2 g^2}+\frac {x^3 \left (a+b \log \left (c (d+e x)^n\right )\right )}{3 g}-\frac {f^3 \left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (\frac {e (f+g x)}{e f-d g}\right )}{g^4}-\frac {b f^3 n \text {Li}_2\left (-\frac {g (d+e x)}{e f-d g}\right )}{g^4}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.29, size = 241, normalized size = 0.86 \[ \frac {e \left (g x \left (6 a e^2 \left (6 f^2-3 f g x+2 g^2 x^2\right )-b n \left (12 d^2 g^2-6 d e g (g x-3 f)+e^2 \left (36 f^2-9 f g x+4 g^2 x^2\right )\right )\right )-36 a e^2 f^3 \log \left (\frac {e (f+g x)}{e f-d g}\right )+6 b e \log \left (c (d+e x)^n\right ) \left (-6 e f^3 \log \left (\frac {e (f+g x)}{e f-d g}\right )+6 d f^2 g+e g x \left (6 f^2-3 f g x+2 g^2 x^2\right )\right )\right )+6 b d^2 g^2 n (2 d g+3 e f) \log (d+e x)-36 b e^3 f^3 n \text {Li}_2\left (\frac {g (d+e x)}{d g-e f}\right )}{36 e^3 g^4} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.45, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {b x^{3} \log \left ({\left (e x + d\right )}^{n} c\right ) + a x^{3}}{g x + f}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (b \log \left ({\left (e x + d\right )}^{n} c\right ) + a\right )} x^{3}}{g x + f}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 0.28, size = 1000, normalized size = 3.56 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ -\frac {1}{6} \, a {\left (\frac {6 \, f^{3} \log \left (g x + f\right )}{g^{4}} - \frac {2 \, g^{2} x^{3} - 3 \, f g x^{2} + 6 \, f^{2} x}{g^{3}}\right )} + b \int \frac {x^{3} \log \left ({\left (e x + d\right )}^{n}\right ) + x^{3} \log \relax (c)}{g x + f}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {x^3\,\left (a+b\,\ln \left (c\,{\left (d+e\,x\right )}^n\right )\right )}{f+g\,x} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {x^{3} \left (a + b \log {\left (c \left (d + e x\right )^{n} \right )}\right )}{f + g x}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________